home *** CD-ROM | disk | FTP | other *** search
/ Champak 49 / Volume 49 - JOGO DISK .iso / Games / funnyquest.swf / scripts / frame_122 / DoAction.as
Encoding:
Text File  |  2007-10-01  |  588 b   |  27 lines

  1. call("/:resetCell");
  2. call("/:applyLvRe");
  3. set("/sndMC/:sndMode","levelUp");
  4. call("/:playSnd");
  5. depth++;
  6. duplicateMovieClip("next_mc","msg_mc",16384 + depth);
  7. tellTarget("/msg_mc/lvScore_mc")
  8. {
  9.    gotoAndStop(length(String(eval("../../:lvScore"))));
  10. }
  11. str = String(lvScore);
  12. j = 0;
  13. k = length(str);
  14. while(k > 0)
  15. {
  16.    tellTarget("/msg_mc/lvScore_mc/n" add j)
  17.    {
  18.       gotoAndStop(Number(mbsubstring(eval("../../../:str"),eval("../../../:k"),1)) + 1);
  19.    }
  20.    j++;
  21.    k--;
  22. }
  23. call("setTotalScore");
  24. my_so.data.myLevel = myLevel;
  25. my_so.flush();
  26. oldLevel = myLevel;
  27.